@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");

:root {
  --success-color: #2ecc71;
  --error-color: #e74c3c;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  height: 100vh;
  margin: 0;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  font-family: 'Open Sans', sans-serif;
}

.container {
  width: 400px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgb(0, 0, 0, 0.3);
  background-color: #fff;
}

.form {
  padding: 30px 40px;
}

.container h2 {
  margin: 0 0 20px;
  text-align: center;
}

.form-control {
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 20px;
}

.form-control label {
  display: block;
  margin-bottom: 5px;
  color: #777;
}

.form-control input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 2px solid #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}

.form-control input:focus {
  outline: 0;
  border-color: #777;
}

.form-control small {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--error-color);
  visibility: hidden;
}
.form-control.error small {
  visibility: visible;
}

.form-control.success input {
  border-color: var(--success-color);
}
.form-control.error input {
  border-color: var(--error-color);
}

.form button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  border: 2px solid #3498db;
  border-radius: 4px;
  color: #fff;
  background-color: #3498db;
  font-size: 16px;
  cursor: pointer;
}
